﻿using RStudio.UIFramwork.Utils;

namespace RStudio.UIFramwork
{
    /// <summary>
    /// 处理器|重置Transform
    /// </summary>
    public class HandlerResetTransform : IUIHandler
    {
        public IUIHandler Next { get; set; }

        public void Handle(UIBase uiBase)
        {
            uiBase.transform.SetParent(UIModuleCenter.Instance.Canvas.transform);
            LayoutUtil.SetTransform(uiBase.transform);

            Next?.Handle(uiBase);
        }
    }
}
